package com.kernel;

import java.util.Properties;

/****************************************
 * @name FactoryDemo02
 * @description 工厂演示类
 * @author 黄彬恒
 * @since 2018/7/16
 ***************************************/
public class FactoryDemo02 {
    public static void main(String args[]) {
        Properties pro = FactoryInit.getPro();
        Fruit f = Factory.getInstance(pro.getProperty("orange"));
        if (f != null) {
            f.eat();
        }
    }
}
